package tests

import tests.steps.EndUserSteps
import tests.requirements.Application.LoginTallygram.LoginInApp
import tests.requirements.Application.AnswerinTallygram.AnswerAQuestion

using "thucydides"

thucydides.uses_default_base_url "http://82.200.2.19"
thucydides.uses_steps_from EndUserSteps
thucydides.tests_story LoginInApp

scenario "Connect with FB", {
    given "the registrated user is opening the Tallygram page", {
        end_user.is_the_opening_page()
    }
    when "the end user click on button connect and input correctly email, password and click on button sigin", {

   end_user.connect_sigin("dusia.iwanowa1988@yandex.ru","89087921481")
    }
    then "they should see opening page 'Recent Activity is open'", {
       end_user.should_opening_page("Recent Activity is open")
    }
}
